/**
 * 
 */
package com.jcsi.app;

import model.Game;

import com.jcsi.db.*;
import com.jcsi.facade_orm.FacadeORM;

/**
 * @author gahon_a
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		DbManager	_dbManager	= DbManager.getInstance();
		FacadeORM	_facadeORM	=	new FacadeORM(_dbManager);
		
		// TO-DO : Load de la configuration a partir d'un fichier XML
		_dbManager.Driver("com.mysql.jdbc.Driver");
		_dbManager.Url("jdbc:mysql://localhost/jcsi");
		_dbManager.Login("root");
		
		// Test de la connection et deconnection
		_dbManager.Connect();
		_dbManager.Execute("SELECT * FROM game");
		//_facadeORM.getTableName(new Game());
		//_facadeORM.Create(new Game());
		_dbManager.Disconnect();
//		_dbManager.Connect();
//		_dbManager.Disconnect();
		//_dbManager.Disconnect();

	}

}
